<template>
  <a-col v-bind="colAttrs">
    <a-form-item v-bind="itemAttrs" :label="label" v-show="showItem" v-if="loadItem">
      <slot></slot>
    </a-form-item>
  </a-col>
</template>
<script>

import {FormItemMixin} from './FormItenMixin'
export default {
    name: 'FormitemWapper',
    mixins:[FormItemMixin],
    inject: ['sh'],
    computed: {
      showItem:{
        get(){
          return this.sh[this.formitem.key]
        }
      },
      loadItem:{
        get(){
          return this.sh[this.formitem.key+"_load"]
        }
      }
    },
    data(){
      return {

      }
    }
}
</script>

<style scoped>

</style>